#ifndef XXBORDER_H
#define XXBORDER_H

#include <QWidget>
#include <functional>
#include "./XXtitleBar.h"

namespace Ui {
class XXborder;
}

class XXborder : public QWidget
{
    Q_OBJECT

public:
    Q_INVOKABLE explicit XXborder(QWidget *parent = nullptr);
    ~XXborder();

    // Title Bar
    XXtitleBar* titleBar();
    void setEdgesForExtendedLayout();

    // content
    void setContentUnderTitleBar();
    void replaceContent(QWidget *widget);

private:
    Ui::XXborder *ui;
    QWidget *_customContent;
};

#endif // XXBORDER_H
